package com.example.pm.ending.server.module.owner;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class OwnerUpdateModuleDTO implements Serializable {

    @ApiModelProperty(name = "ownerId",value = "业主id",required = true)
    @NotNull
    private Long ownerId;

    @ApiModelProperty(name = "beforeUpdateHouseId",value = "修改前业主房产id",required = true)
    @NotNull
    Long beforeUpdateHouseId;
    @ApiModelProperty(name = "beforeUpdateCarPartAreaId",value = "修改前车库区域id")
    Long beforeUpdateCarPartAreaId;
    @ApiModelProperty(name = "beforeUpdateCarPortNumber",value = "修改前车库区位编号")
    String beforeUpdateCarPortNumber;

    @ApiModelProperty(name = "ownerName",value = "修改后业主姓名",required = true)
    @NotNull
    private String ownerName;
    @ApiModelProperty(name = "ownerPhone",value = "修改后业主手机号",required = true)
    @NotNull
    private String ownerPhone;
    @ApiModelProperty(name = "ownerIdCard",value = "修改后业主身份证",required = true)
    @NotNull
    @Length(min = 18,max = 18)
    private String ownerIdCard;
    @ApiModelProperty(name = "ownerGender",value = "修改后业主性别",required = true)
    @NotNull
    private String ownerGender;
    @ApiModelProperty(name = "houseBuildId",value = "修改后房屋区(栋)号",required = true)
    @NotNull
    private Long houseBuildId;
    @ApiModelProperty(name = "houseUnitId",value = "修改后单元号",required = true)
    @NotNull
    private Long houseUnitId;
    @ApiModelProperty(name = "roomNum",value = "修改后房间号",required = true)
    @NotNull
    private String roomNum;
    @ApiModelProperty(name = "carPartAreaId",value = "修改后车库区号")
    private Long carPartAreaId;
    @ApiModelProperty(name = "carPartNumber",value = "修改后车位编号")
    private String carPartNumber;

}
